package com.carl.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.carl.common.utils.PageUtils;
import com.carl.mall.product.entity.AttrEntity;
import com.carl.mall.product.vo.AttrEntityVO;
import com.carl.mall.product.vo.AttrGroupRelationVO;
import com.carl.mall.product.vo.AttrResponseVO;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author carl
 * @email 541020344@qq.com
 * @date 2024-03-09 23:50:01
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrEntityVO attrEntityVO);

    PageUtils queryByPage(Map<String, Object> params, Long catelogId, String attrType);

    AttrResponseVO queryByAttrId(Long attrId);

    void updateByEntity(AttrEntityVO attrEntityVO);

    void removeByAttrIds(Long[] attrIds);

    List<AttrResponseVO> queryByAttrGroupId(Long attrGroupId);

    void deleteRelation(AttrGroupRelationVO[] vos);

    PageUtils queryPageWithTreeNoAttr(Map<String, Object> params, Long attrGroupId);

    List<Long> selectSearchAttrIds(List<Long> attrIdList);
}

